package demo1;

class OuterClass{
    public int date1 = 1;
    public int date2 = 2;
    public static int data5 = 5;
    static class Interclass{
        public int date3 = 3;
        public int date4 = 4;
        public static final int data6 = 6;
        public void test(){
            Outerclas outerclas= new Outerclas();
            System.out.println(outerclas.date1);
            System.out.println(date3);
            System.out.println(date4);
            System.out.println("内部类test方法");
        }
    }

}
public class Test2 {
    public static void main(String[] args){
        OuterClass.Interclass interclass = new OuterClass.Interclass();
        interclass.test();
    }
}
